<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 掌握数组的解构 和 uni-api的推荐写法

    const obj = {
      name: "zs",
      age: 18
    }

    // 对象解构是按名称
    const { name } = obj


    const list = [1, 2, 3]
    // 💥数组是按位置解构的
    // 💥 , 前面还有一位
    const [, xxx] = list
    console.log('a, b, c  ----->  ', xxx,);

  </script>
</body>

</html>